package businesslogic.userBl;

import java.util.ArrayList;

import vo.userVO.StudentVO;
import vo.userVO.TeacherVO;
import businesslogicservice.userblservice.UniversityDeanBLService;
import dataservice.ResultMessage;

public class UniversityDeanController  implements UniversityDeanBLService{

	UniversityDeanBLService universityDean;
	private String UserID;
	
	
	public UniversityDeanController(String UserID){
		this.UserID=UserID;
		universityDean=new UniversityDean(UserID);

	}
	
	

	@Override
	public ArrayList<StudentVO> getStudentList(String departmentID)throws Exception {
		return universityDean.getStudentList(departmentID);
	}

	

	@Override
	public ArrayList<TeacherVO> getTeacherList(String departmentID) throws Exception{
		return universityDean.getTeacherList(departmentID);
	}
	@Override
	public ResultMessage login(String id, char[] password) {
		return  universityDean.login(id, password);
	}
	@Override
	public ResultMessage changePassword(char[] oldPassword, char[] password1,
			char[] password2) {
		return universityDean.changePassword(oldPassword, password1, password2);
	}
	
	



	@Override
	public String getUserName(String userID)throws Exception {
		return universityDean.getUserName(userID);
	}



	@Override
	public ArrayList<TeacherVO> getTeacherList() throws Exception {
		return universityDean.getTeacherList();
	}



	@Override
	public ArrayList<StudentVO> getStudentList() throws Exception {
		return universityDean.getStudentList();
	}



	@Override
	public int getUserType(String userID) throws Exception {
		return universityDean.getUserType(userID);
	}


	public String getUserID() {
		// TODO 自动生成的方法存根
		return UserID;
	}


}
